package com.eb.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.eb.domain.Preserve;
import com.eb.dto.PreservePageQueryDTO;
import com.eb.result.PageResult;

public interface PreserveService extends IService<Preserve> {
    /**
     * 新建收藏
     * @param innovationId
     */
    Boolean addPreserve(Integer innovationId);

    /**
     * 分页查询收藏
     * @param preservePageQueryDTO
     * @return
     */
    PageResult pageQuery(PreservePageQueryDTO preservePageQueryDTO);

    /**
     * 取消收藏
     * @param innovationId
     */
    void deletePreserve(Integer innovationId);
}
